﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace InWare.InNutri.Presentation.View
{
    /// <summary>
    /// Interaction logic for PacienteListView.xaml
    /// </summary>
    public partial class PacienteListView : UserControl
    {
        public PacienteListView()
        {
            InitializeComponent();
        }

        private void lstPacientes_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            dynamic viewModel = DataContext;
            viewModel.EditSelectedPaciente();
        }

        private void NovoPaciente_Click(object sender, RoutedEventArgs e)
        {
            dynamic viewModel = DataContext;
            viewModel.EditNewPaciente();
        }

        private void EditarPaciente_Click(object sender, RoutedEventArgs e)
        {
            dynamic viewModel = DataContext;
            viewModel.EditSelectedPaciente();
        }


    }
}
